//
//  BattleLayer.h
//  VicBattle
//
//  Created by Nguyen Nguyen on 5/3/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "CCLayer.h"
#import "cocos2d.h"
#import "VBCharacter.h"

@interface VBBattleLayer : CCLayer
{
    char matrix[12][12][100];
    char team[12][12];
    
    float outWidth, outHeight;
    float x0, y0, w, h, maxRow, maxCol;
    float xa, ya, xb, yb, xy, xc, yr, xp, yp;
    int m, n;
    
    CCArray *heroes;
    VBCharacter *vbChar;
}

@property float w, h;
@property int m, n;
@property (assign) VBCharacter *vbChar;

-(CGPoint) pointFromRow:(int) row andCol:(int) col;
-(void) getRow:(int *) row andCol:(int *) col fromPoint:(CGPoint) p;
-(void) putCharacter:(int) idNumber toRow:(int) row toCol:(int) col;
-(void) viewWithOlPoint:(CGPoint) oldPoint andNewPoint:(CGPoint) newPoint;

@end
